<?php
/*
+----------------------------------------------------------------+
|								 |
|	WordPress 2.0 Plugin: Stats 1.0				 |
|	Copyright (c) 2005 Lester "GaMerZ" Chan			 |
|								 |
|	File Written By:					 |
|	- Lester "GaMerZ" Chan					 |
|	- http://www.lesterchan.net				 |
|								 |
|	File Information:					 |
|	- WordPress Statistics					 |
|	- stats.php						 |
|								 |
+----------------------------------------------------------------+
*/

### Require WordPress Header
require(dirname(__FILE__).'/wp-blog-header.php');

?>
<?php get_header(); ?>

<ul id="pages">
    <li class="page_item"><a href="/blog" title="Accueil"><strong>Accueil</strong></a></li>
    <?php wp_list_pages('exclude=89&sort_column=menu_order&title_li=&depth=1'); ?>
    <li class="page_item"><a href="stats.php" title="Statistiques"><strong>Statistiques</strong></a></li>
</ul>

<div id="sidebar">
    <?php get_sidebar(); ?>
</div>

<div id="content" class="narrowcolumn">
    <div class="post">
        <h2 id="stats"><span>Statistiques des articles</span></h2>
        <div class="entry">
	    <blockquote>
	    	<p><strong>Nombre total d'articles : <?php get_totalposts(); ?></strong></p>
		    <table width="350">
		    	<?php getAuthorStats("<tr><td><strong>", "</strong></td><td align=\"right\" width=\"150\">", " Articles</td></tr>"); ?>
		    </table>
	    </blockquote>
        </div>
    </div>
    <div class="post">
        <h2 id="stats"><span>Statistiques des commentaires</span></h2>
        <div class="entry">
	    <blockquote>
	    	<p><strong>Nombre total de commentaires : <?php get_totalcomments(); ?></strong></p>
		    <table width="450">
		    	<?php getCommentStats("<tr><td><strong>", "</strong></td><td align=\"right\" width=\"150\">", " Commentaires</td></tr>"); ?>
		    </table>
	    </blockquote>
        </div>
    </div>
    <div class="post">
        <h2 id="stats"><span>R&eacute;partition des articles dans le temps</span></h2>
        <div class="entry">
	    <blockquote>
		    <table width="350">
		    	<?php getPostCountByMonth("<tr><td>", "</td><td align=\"center\">", "</td></tr>"); ?>
		    </table>
	    </blockquote>
        </div>
    </div>
    <div class="post">
        <h2 id="stats"><span>R&eacute;partition des commentaires dans le temps</span></h2>
        <div class="entry">
	    <blockquote>
		    <table width="350">
		    	<?php getCommentCountByMonth("<tr><td>", "</td><td align=\"center\">", "</td></tr>"); ?>
		    </table>
	    </blockquote>
        </div>
    </div>
</div>

<?php get_footer(); ?>
